﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200139F RID: 5023
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeRollShopRewardScRsp : IMessage<TakeRollShopRewardScRsp>, IMessage, IEquatable<TakeRollShopRewardScRsp>, IDeepCloneable<TakeRollShopRewardScRsp>, IBufferMessage
	{
		// Token: 0x17003F55 RID: 16213
		// (get) Token: 0x0600E0ED RID: 57581 RVA: 0x002596CF File Offset: 0x002578CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeRollShopRewardScRsp> Parser
		{
			get
			{
				return TakeRollShopRewardScRsp._parser;
			}
		}

		// Token: 0x17003F56 RID: 16214
		// (get) Token: 0x0600E0EE RID: 57582 RVA: 0x002596D6 File Offset: 0x002578D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeRollShopRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003F57 RID: 16215
		// (get) Token: 0x0600E0EF RID: 57583 RVA: 0x002596E8 File Offset: 0x002578E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeRollShopRewardScRsp.Descriptor;
			}
		}

		// Token: 0x0600E0F0 RID: 57584 RVA: 0x002596EF File Offset: 0x002578EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeRollShopRewardScRsp()
		{
		}

		// Token: 0x0600E0F1 RID: 57585 RVA: 0x002596F8 File Offset: 0x002578F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeRollShopRewardScRsp(TakeRollShopRewardScRsp other) : this()
		{
			this.groupType_ = other.groupType_;
			this.retcode_ = other.retcode_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.rollShopId_ = other.rollShopId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E0F2 RID: 57586 RVA: 0x0025975C File Offset: 0x0025795C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeRollShopRewardScRsp Clone()
		{
			return new TakeRollShopRewardScRsp(this);
		}

		// Token: 0x17003F58 RID: 16216
		// (get) Token: 0x0600E0F3 RID: 57587 RVA: 0x00259764 File Offset: 0x00257964
		// (set) Token: 0x0600E0F4 RID: 57588 RVA: 0x0025976C File Offset: 0x0025796C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GroupType
		{
			get
			{
				return this.groupType_;
			}
			set
			{
				this.groupType_ = value;
			}
		}

		// Token: 0x17003F59 RID: 16217
		// (get) Token: 0x0600E0F5 RID: 57589 RVA: 0x00259775 File Offset: 0x00257975
		// (set) Token: 0x0600E0F6 RID: 57590 RVA: 0x0025977D File Offset: 0x0025797D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003F5A RID: 16218
		// (get) Token: 0x0600E0F7 RID: 57591 RVA: 0x00259786 File Offset: 0x00257986
		// (set) Token: 0x0600E0F8 RID: 57592 RVA: 0x0025978E File Offset: 0x0025798E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x17003F5B RID: 16219
		// (get) Token: 0x0600E0F9 RID: 57593 RVA: 0x00259797 File Offset: 0x00257997
		// (set) Token: 0x0600E0FA RID: 57594 RVA: 0x0025979F File Offset: 0x0025799F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RollShopId
		{
			get
			{
				return this.rollShopId_;
			}
			set
			{
				this.rollShopId_ = value;
			}
		}

		// Token: 0x0600E0FB RID: 57595 RVA: 0x002597A8 File Offset: 0x002579A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeRollShopRewardScRsp);
		}

		// Token: 0x0600E0FC RID: 57596 RVA: 0x002597B8 File Offset: 0x002579B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeRollShopRewardScRsp other)
		{
			return other != null && (other == this || (this.GroupType == other.GroupType && this.Retcode == other.Retcode && object.Equals(this.Reward, other.Reward) && this.RollShopId == other.RollShopId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E0FD RID: 57597 RVA: 0x00259828 File Offset: 0x00257A28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.GroupType != 0U)
			{
				num ^= this.GroupType.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.RollShopId != 0U)
			{
				num ^= this.RollShopId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E0FE RID: 57598 RVA: 0x002598AF File Offset: 0x00257AAF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E0FF RID: 57599 RVA: 0x002598B7 File Offset: 0x00257AB7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E100 RID: 57600 RVA: 0x002598C0 File Offset: 0x00257AC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.GroupType != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.GroupType);
			}
			if (this.RollShopId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.RollShopId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(122);
				output.WriteMessage(this.Reward);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E101 RID: 57601 RVA: 0x00259954 File Offset: 0x00257B54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.GroupType != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GroupType);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.RollShopId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RollShopId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E102 RID: 57602 RVA: 0x002599DC File Offset: 0x00257BDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeRollShopRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.GroupType != 0U)
			{
				this.GroupType = other.GroupType;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.RollShopId != 0U)
			{
				this.RollShopId = other.RollShopId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E103 RID: 57603 RVA: 0x00259A6C File Offset: 0x00257C6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E104 RID: 57604 RVA: 0x00259A78 File Offset: 0x00257C78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 72U)
				{
					if (num == 48U)
					{
						this.GroupType = input.ReadUInt32();
						continue;
					}
					if (num == 72U)
					{
						this.RollShopId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 104U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 122U)
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x0400590F RID: 22799
		private static readonly MessageParser<TakeRollShopRewardScRsp> _parser = new MessageParser<TakeRollShopRewardScRsp>(() => new TakeRollShopRewardScRsp());

		// Token: 0x04005910 RID: 22800
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005911 RID: 22801
		public const int GroupTypeFieldNumber = 6;

		// Token: 0x04005912 RID: 22802
		private uint groupType_;

		// Token: 0x04005913 RID: 22803
		public const int RetcodeFieldNumber = 13;

		// Token: 0x04005914 RID: 22804
		private uint retcode_;

		// Token: 0x04005915 RID: 22805
		public const int RewardFieldNumber = 15;

		// Token: 0x04005916 RID: 22806
		private ItemList reward_;

		// Token: 0x04005917 RID: 22807
		public const int RollShopIdFieldNumber = 9;

		// Token: 0x04005918 RID: 22808
		private uint rollShopId_;
	}
}
